import __00SetRelation as sr
import _00SetFunc as ss 

#验证sr(R)=rs(R)
Xm,Ym,n=10,8,10 
X=set(range(Xm))
Y=set(range(Ym))
R=sr.createrelation(X,Y,n)
tv=sr.s(X,sr.r(X,R))==sr.r(X,sr.s(X,R))
print("R",R)
print("tv",tv)